var app = getApp()



function getRanking(type,callback) {
  app.func.Get(false, app.api.ranking, { "type": type,"userId":app.globalData.userId}, function (res) {
    typeof callback == "function" && callback(res)
  })
};

module.exports = {
  getRanking: getRanking,
};